Optimal. Leaf size=508 \[ -\frac {(a-b) \sqrt {a+b} \left (3 a^2+16 b^2\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{24 a b d}+\frac {\sqrt {a+b} (a+2 b) (3 a+8 b) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{24 b d}+\frac {a \sqrt {a+b} \left (a^2-12 b^2\right ) \cot (c+d x) \Pi \left (\frac {a+b}{b};\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{8 b^2 d}+\frac {\left (3 a^2+16 b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{24 b d \sqrt {\cos (c+d x)}}+\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.81, antiderivative size = 508, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {2900, 3128,
3140, 3132, 2888, 3077, 2895, 3073} \begin {gather*} -\frac {(a-b) \sqrt {a+b} \left (3 a^2+16 b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{24 a b d}+\frac {a \sqrt {a+b} \left (a^2-12 b^2\right ) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{8 b^2 d}+\frac {\left (3 a^2+16 b^2\right ) \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{24 b d \sqrt {\cos (c+d x)}}+\frac {\sqrt {a+b} (a+2 b) (3 a+8 b) \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{24 b d}+\frac {\sin (c+d x) \sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2}}{3 d}+\frac {a \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2888
Rule 2895
Rule 2900
Rule 3073
Rule 3077
Rule 3128
Rule 3132
Rule 3140
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))^{3/2} \, dx &=\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {\sqrt {a+b \cos (c+d x)} \left (\frac {a b}{2}+2 b^2 \cos (c+d x)+\frac {3}{2} a b \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{3 b}\\ &=\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {\frac {7 a^2 b}{4}+\frac {13}{2} a b^2 \cos (c+d x)+\frac {1}{4} b \left (3 a^2+16 b^2\right ) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{6 b}\\ &=\frac {\left (3 a^2+16 b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{24 b d \sqrt {\cos (c+d x)}}+\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {-\frac {1}{4} a b \left (3 a^2+16 b^2\right )+\frac {7}{2} a^2 b^2 \cos (c+d x)-\frac {3}{4} a b \left (a^2-12 b^2\right ) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{12 b^2}\\ &=\frac {\left (3 a^2+16 b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{24 b d \sqrt {\cos (c+d x)}}+\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {-\frac {1}{4} a b \left (3 a^2+16 b^2\right )+\frac {7}{2} a^2 b^2 \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{12 b^2}-\frac {\left (a \left (a^2-12 b^2\right )\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx}{16 b}\\ &=\frac {a \sqrt {a+b} \left (a^2-12 b^2\right ) \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{8 b^2 d}+\frac {\left (3 a^2+16 b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{24 b d \sqrt {\cos (c+d x)}}+\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {(a (a+2 b) (3 a+8 b)) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{48 b}-\frac {\left (a \left (3 a^2+16 b^2\right )\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{48 b}\\ &=-\frac {(a-b) \sqrt {a+b} \left (3 a^2+16 b^2\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{24 a b d}+\frac {\sqrt {a+b} (a+2 b) (3 a+8 b) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{24 b d}+\frac {a \sqrt {a+b} \left (a^2-12 b^2\right ) \cot (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{8 b^2 d}+\frac {\left (3 a^2+16 b^2\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{24 b d \sqrt {\cos (c+d x)}}+\frac {a \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac {\sqrt {\cos (c+d x)} (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 18.78, size = 1189, normalized size = 2.34 \begin {gather*} \frac {-\frac {4 a \left (17 a^2+16 b^2\right ) \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-208 a^2 b \left (\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )+2 \left (3 a^2+16 b^2\right ) \left (\frac {i \cos \left (\frac {1}{2} (c+d x)\right ) \sqrt {a+b \cos (c+d x)} E\left (i \sinh ^{-1}\left (\frac {\sin \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\cos (c+d x)}}\right )|-\frac {2 a}{-a-b}\right ) \sec (c+d x)}{b \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \sqrt {\frac {(a+b \cos (c+d x)) \sec (c+d x)}{a+b}}}+\frac {2 a \left (\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{(a+b) \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}-\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \Pi \left (-\frac {a}{b};\text {ArcSin}\left (\frac {\sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}}}{\sqrt {2}}\right )|-\frac {2 a}{-a+b}\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{b \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}\right )}{b}+\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{b \sqrt {\cos (c+d x)}}\right )}{48 d}+\frac {\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \left (\frac {7}{12} a \sin (c+d x)+\frac {1}{6} b \sin (2 (c+d x))\right )}{d} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1682\) vs.
\(2(460)=920\).
time = 0.31, size = 1683, normalized size = 3.31
method | result | size |
default | \(\text {Expression too large to display}\) | \(1683\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\cos \left (c+d\,x\right )}^{3/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________